﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="NewsCategories.aspx.cs" Inherits="TCV_WEB.Admin.Page.NewsCategories"
    Title="Untitled Page" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlacebody" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <table cellpadding="0" cellspacing="6" border="0" class="tableForm" id="tblManagePartner">
                    <tr>
                        <td colspan="5"  class="formTitle">
                            News Categories
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <div id="divError">
                                <asp:Label ID="lblErr" runat="server" CssClass="errorText"></asp:Label>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 5%">
                        </td>
                        <td style="width: 25%">
                            Tên
                        </td>
                        <td style="width: 20px">
                        </td>
                        <td>
                            <asp:TextBox ID="txtnewname" runat="server" Width="70%"></asp:TextBox>
                        </td>
                        <td style="width: 20%" rowspan="4">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 5%">
                        </td>
                        <td style="width: 25%">
                            Tên tiếng anh
                        </td>
                        <td style="width: 20px">
                        </td>
                        <td>
                            <asp:TextBox ID="txtnewnameEn" runat="server" Width="70%"></asp:TextBox>
                        </td>
                        <td style="width: 20%" rowspan="4">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            Tình trạng
                        </td>
                        <td style="width: 20px">
                        </td>
                        <td>
                            <asp:RadioButtonList ID="rblIsViewed" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True" Value="1">Sử dụng</asp:ListItem>
                                <asp:ListItem Value="0">Không sử dụng</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            Số thứ tự
                        </td>
                        <td style="width: 20px">
                            &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtRank" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="height: 18px">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
                <asp:TextBox Visible="false" ID="txtNewsCatID" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnAddNew" runat="server" Text="Thêm mới" OnClick="btnAddNew_Click" />
                &nbsp;
                <asp:Button ID="btnSave" runat="server" Text="Lưu" OnClick="btnSave_Click" />
                &nbsp;
                <asp:Button ID="btnDelete" runat="server" Text="Xóa" OnClick="btnDelete_Click" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center" style="padding-bottom: 20px">
                <telerik:RadGrid ID="dgvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                    Skin="Office2007" AllowSorting="True" OnItemCommand="dgvList_ItemCommand" OnItemCreated="dgvList_ItemCreated"
                    OnNeedDataSource="dgvList_NeedDataSource" ShowGroupPanel="True" 
                    AllowMultiRowSelection="True" AllowFilteringByColumn="True" AllowPaging="True">
                    <MasterTableView DataKeyNames="ID">
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="column6" Visible="False">
                                <ItemStyle Width="20px"></ItemStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridButtonColumn CommandName="Load" Text="Sửa" UniqueName="column8">
                            </telerik:GridButtonColumn>
                            <telerik:GridBoundColumn DataField="Rank" HeaderText="STT" UniqueName="column7">
                                <ItemStyle Width="20px"></ItemStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Name" HeaderText="Tên" UniqueName="column1">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="NameVN" HeaderText="Tên VN" UniqueName="column2">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="IDStatus" Visible="false" HeaderText="Tình trạng" UniqueName="column4">
                                <ItemStyle Width="20px"></ItemStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="Tình trạng">
                                <ItemTemplate>
                                    <asp:Label ID="IDStatus" runat="server" Text="Label"></asp:Label>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridButtonColumn CommandName="Detail" Text="Chi tiết" UniqueName="column">
                            </telerik:GridButtonColumn>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings AllowDragToGroup="True">
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                </telerik:RadGrid>
            </td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
